// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import { Toast } from 'mint-ui'
import FastClick from 'fastclick'
import axios from 'axios'


Vue.prototype.$toast = Toast
Vue.prototype.axios = axios

Vue.config.productionTip = false

/* Vue.prototype.BASEURL = (function () {  
       var dev='DEV';
       if(dev==='DEV'){ //通过这个参数控制开发环境还是测试环境
          return '/';    //开发时候的代理地址
       }else{
          return "http://10.0.100.20";//生产环境中 你后台服务器的地址
       }
    })(); */
//去除300毫秒的点击延迟
FastClick.attach(document.body);
//axios.defaults.headers.post['Content-Type']='application/x-www-form-urlencoded';
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
